#define _CRT_SECURE_NO_WARNINGS 1

#include "Stack.h"
<<<<<<< HEAD
#include "Queue.h"


//void StackTest()
//{
//	ST st;
//	StackInit(&st);
//	StackPush(&st, 1);
//	StackPush(&st, 2);
//	printf("%d ", StackTop(&st));
//	StackPop(&st);
//	printf("%d ", StackTop(&st));
//	StackPop(&st);
//	StackPush(&st, 3);
//	StackPush(&st, 4);
//	StackPush(&st, 5);
//	StackPush(&st, 6);
//	while (!StackEmpty(&st))
//	{
//		printf("%d ", StackTop(&st));
//		StackPop(&st);
//	}
//	StackDestroy(&st);
//
//}

void QueueTest()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);
	QueuePush(&q, 6);
	printf("%d\n", QueueSize(&q));
	printf("%d\n", QueueFront(&q));
	printf("%d\n", QueueBack(&q));
	QueuePop(&q);
	QueuePop(&q);
	printf("%d\n", QueueSize(&q));
	printf("%d\n", QueueFront(&q));
	printf("%d\n", QueueBack(&q));
	QueueDestroy(&q);
	//QueuePop(&q);
=======

void StackTest()
{
	ST st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	printf("%d ", StackTop(&st));
	StackPop(&st);
	printf("%d ", StackTop(&st));
	StackPop(&st);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);
	StackPush(&st, 6);
	while (!StackEmpty(&st))
	{
		printf("%d ", StackTop(&st));
		StackPop(&st);
	}
	StackDestroy(&st);

>>>>>>> d454fcb13cdbb01822ef383a4f7bfa52e3511fa9
}

int main()
{
<<<<<<< HEAD
	//StackTest();
	QueueTest();
=======
	StackTest();
>>>>>>> d454fcb13cdbb01822ef383a4f7bfa52e3511fa9
	return 0;
}